PATH=C:\Program Files\IAR Systems\Embedded Workbench 6.0 Evaluation_0\430\bin
SET IARSYSTEM="C:\Program Files\IAR Systems\Embedded Workbench 6.0 Evaluation_0\430"

SET TARGET=airtouch_msp430
SET APP_PATH=%cd%
SET OBJ_PATH=%APP_PATH%\Debug\Obj\
SET LST_PATH=%APP_PATH%\Debug\List
SET EXE_PATH=%APP_PATH%\Debug\Exe
SET INC_PATH=%APP_PATH%\inc

SET CC_DLIB=--dlib_config %IARSYSTEM%\LIB\DLIB\dl430fn.h
SET CC_FLAGS=--no_inline --debug  -D__MSP430F2272__ -e --double=32 %CC_DLIB% -I %INC_PATH% -Ohs

SET LD_LIB=-I%IARSYSTEM%\LIB\
SET LD_XCL=-f %IARSYSTEM%\CONFIG\lnk430F2272.xcl
SET LD_DLIB=-rt %IARSYSTEM%\LIB\DLIB\dl430fn.r43

icc430.exe %APP_PATH%\aat4292.c -o %OBJ_PATH% %CC_FLAGS% 
icc430.exe %APP_PATH%\adc.c -o %OBJ_PATH% %CC_FLAGS% 
icc430.exe %APP_PATH%\i2c.c -o %OBJ_PATH% %CC_FLAGS% 
icc430.exe %APP_PATH%\main.c -o %OBJ_PATH% %CC_FLAGS% 
icc430.exe %APP_PATH%\matrix.c -o %OBJ_PATH% %CC_FLAGS% 
icc430.exe %APP_PATH%\screen.c -o %OBJ_PATH% %CC_FLAGS% 
icc430.exe %APP_PATH%\timer.c -o %OBJ_PATH% %CC_FLAGS% 
xlink.exe %OBJ_PATH%\aat4292.r43 %OBJ_PATH%\adc.r43 %OBJ_PATH%\i2c.r43 %OBJ_PATH%\main.r43 %OBJ_PATH%\matrix.r43 %OBJ_PATH%\screen.r43 %OBJ_PATH%\timer.r43 -o %EXE_PATH%\%TARGET%.d43 -l %LST_PATH%\%TARGET%.map -xmsn %LD_LIB% %LD_XCL% -D_STACK_SIZE=A0 %LD_DLIB% -e_PrintfLarge=_Printf -e_ScanfLarge=_Scanf -D_DATA16_HEAP_SIZE=A0 -Ointel-extended=%EXE_PATH%\%TARGET%.hex -Omsp430_txt=%EXE_PATH%\%TARGET%.txt -Omotorola=%EXE_PATH%\%TARGET%.srec -s __program_start -D_DATA20_HEAP_SIZE=50
